import { Entity, Column, PrimaryGeneratedColumn, UpdateDateColumn} from 'typeorm';
import { ApiProperty} from '@nestjs/swagger';
import {
  IsOptional,
  IsString,
  MaxLength,
  MinLength,
  IsNotEmpty,
  IsEmail,
  IsPhoneNumber,
  IsDate,
  ValidateNested
} from "class-validator";

@Entity()
export class TopicCategory {
  @PrimaryGeneratedColumn()
  id: number;

  @IsOptional()
  @ApiProperty()
  @Column({type: 'varchar', length: 255, nullable:false})
  title: string;

  @IsOptional()
  @ApiProperty()
  @Column({type: 'varchar', length: 255, nullable:false})
  pic_url: string;
  
}
